package com.worthtech.billportal.bean;

/**
 * WtFavorableAuditId entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class WtFavorableAuditId implements java.io.Serializable {

	// Fields

	private String wtFavorMercode;
	private String wtFavorTrmcode;
	private String wtFavorContent;

	// Constructors

	/** default constructor */
	public WtFavorableAuditId() {
	}

	/** full constructor */
	public WtFavorableAuditId(String wtFavorMercode, String wtFavorTrmcode,
			String wtFavorContent) {
		this.wtFavorMercode = wtFavorMercode;
		this.wtFavorTrmcode = wtFavorTrmcode;
		this.wtFavorContent = wtFavorContent;
	}

	// Property accessors

	public String getWtFavorMercode() {
		return this.wtFavorMercode;
	}

	public void setWtFavorMercode(String wtFavorMercode) {
		this.wtFavorMercode = wtFavorMercode;
	}

	public String getWtFavorTrmcode() {
		return this.wtFavorTrmcode;
	}

	public void setWtFavorTrmcode(String wtFavorTrmcode) {
		this.wtFavorTrmcode = wtFavorTrmcode;
	}

	public String getWtFavorContent() {
		return this.wtFavorContent;
	}

	public void setWtFavorContent(String wtFavorContent) {
		this.wtFavorContent = wtFavorContent;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof WtFavorableAuditId))
			return false;
		WtFavorableAuditId castOther = (WtFavorableAuditId) other;

		return ((this.getWtFavorMercode() == castOther.getWtFavorMercode()) || (this
				.getWtFavorMercode() != null
				&& castOther.getWtFavorMercode() != null && this
				.getWtFavorMercode().equals(castOther.getWtFavorMercode())))
				&& ((this.getWtFavorTrmcode() == castOther.getWtFavorTrmcode()) || (this
						.getWtFavorTrmcode() != null
						&& castOther.getWtFavorTrmcode() != null && this
						.getWtFavorTrmcode().equals(
								castOther.getWtFavorTrmcode())))
				&& ((this.getWtFavorContent() == castOther.getWtFavorContent()) || (this
						.getWtFavorContent() != null
						&& castOther.getWtFavorContent() != null && this
						.getWtFavorContent().equals(
								castOther.getWtFavorContent())));
	}

	public int hashCode() {
		int result = 17;

		result = 37
				* result
				+ (getWtFavorMercode() == null ? 0 : this.getWtFavorMercode()
						.hashCode());
		result = 37
				* result
				+ (getWtFavorTrmcode() == null ? 0 : this.getWtFavorTrmcode()
						.hashCode());
		result = 37
				* result
				+ (getWtFavorContent() == null ? 0 : this.getWtFavorContent()
						.hashCode());
		return result;
	}

}